-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: update to not auto fix lint errors #256
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for continuing to suggest improvements.
@@ -32,7 +32,8 @@ | |||
"g:test:factory": "hygen test factory --name", | |||
"g:test:request": "hygen test request --name", | |||
"g:test:util": "hygen test util --name", | |||
"lint": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp", | |||
"lint": "yarn eslint . --ext .ts,.tsx --ignore-pattern tmp", | |||
"lint:fix": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer this separation! Great add to not just pull out the ability to fix, but to create another distinct script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to make sure both scripts do the same thing, except for fixing lint errors, you could do:
lint:fix": "yarn lint --fix"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Cully. Made this chnage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea, Kishan! I like it.
@@ -32,7 +32,8 @@ | |||
"g:test:factory": "hygen test factory --name", | |||
"g:test:request": "hygen test request --name", | |||
"g:test:util": "hygen test util --name", | |||
"lint": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp", | |||
"lint": "yarn eslint . --ext .ts,.tsx --ignore-pattern tmp", | |||
"lint:fix": "yarn eslint . --ext .ts,.tsx --fix --ignore-pattern tmp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to make sure both scripts do the same thing, except for fixing lint errors, you could do:
lint:fix": "yarn lint --fix"
Changes
yarn lint
to not auto fix lint errors. This was being run in the CI, so the lint step would pass even when lint errors exist.yarn lint:fix
script that can auto fix lint errorsChecklist